package com.fusion.lottery.entity.auth;

import java.io.Serializable;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import io.swagger.annotations.ApiModelProperty;

/**
 * 角色
 * @author louis
 *
 */
//@ApiModel(value="角色对象",description="角色对象实体")
public class Role implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(hidden=true)
	private int id;//角色id
	@ApiModelProperty(value="名称")
	@NotNull
	private String name;//角色名称
	
	@ApiModelProperty(value="代码")
	@NotNull
	@Size(max=10,min=3)
	private String code;//代码
	
	@ApiModelProperty(value="状态")
	private String status;//状态
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	
}
